<?php
    /**
     * Created by PhpStorm.
     * User: zgh
     * Date: 2021-08-03
     * Time: 11:52
     */

    namespace app\common\model;


    use think\Model;

    class AdvModel extends Model
    {
        protected $autoWriteTimestamp = true;

        const tableName = 'adv';

        public function getCreateTimeAttr($value)
        {
            return date("Y-m-d H:i:s", $value);
        }

        public static function getMagicTableName()
        {
            return '__' . strtoupper(self::tableName) . '__';
        }

    }